<template>
    <el-breadcrumb
      separator="/"
      class="mb-2 mt-1"
      style="vertical-align: bottom"
    >
      <el-breadcrumb-item>
        <div class="flex align-center">
          <el-icon :size="18"> <PriceTag /> </el-icon
          ><span class="pl">行销管理</span>
        </div>
      </el-breadcrumb-item>
      <el-breadcrumb-item>购物金</el-breadcrumb-item>
    </el-breadcrumb>
    <el-card class="box-card" shadow="hover">
      <el-tabs v-model="activeName" @tab-click="handleClick">
        <el-tab-pane label="优惠码列表" name="list">
          <code-list></code-list>
        </el-tab-pane>
        <el-tab-pane label="优惠码明細" name="detail">
           <code-detail></code-detail>
        </el-tab-pane>
      </el-tabs>
    </el-card>
</template>
<script lang="ts" setup>
import { ref, onMounted } from "vue";
import { Search, PriceTag } from "@element-plus/icons-vue";
import CodeList from "./code/CodeList.vue";
import CodeDetail from "./code/CodeDetail.vue";
const activeName = ref("list");

const handleClick = (tab: TabsPaneContext, event: Event) => {
  console.log(tab, event);
};

</script>

<style lang="scss" scoped></style>